package com.shuoyue.ycgk.ui.main.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.PaperSet;
import com.shuoyue.ycgk.entity.QuestionBankGroup;

import java.util.List;

public class QuestionBanGroupAdapter extends AppBaseQuickAdapter<PaperSet> {
    public QuestionBanGroupAdapter(@Nullable List<PaperSet> data) {
        super(R.layout.item_qb_group, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PaperSet item) {
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.title, item.getTitle());
        helper.setText(R.id.info, "共" + item.getTotalPaper() + "个习题包");
    }
}
